package com.secondGroup.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.web.servlet.view.tiles3.SpringWildcardServletTilesApplicationContext;

/**
 * <p>
 * 
 * </p>
 *
 * @author ws
 * @since 2022-05-05
 */
@Getter
@Setter
@TableName("t_flow")
@ToString
public class Flow implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 流水表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 流水号
     */
    @TableField("f_id")
    private String fId;

    /**
     * 流水对应的账号
     */
    @TableField("account")
    private String account;

    /**
     * 电子账户id
     */
    @TableField("e_id")
    private String eId;


    /**
     * 交易类型，如充值
     */
    @TableField("trade_type")
    private Integer tradeType;

    /**
     * 当前账号余额
     */
    @TableField("balance")
    private BigDecimal balance;

    /**
     * 交易金额
     */
    @TableField("trade_money")
    private BigDecimal tradeMoney;

    /**
     * 交易时间
     */
    @TableField("trade_time")
    private LocalDateTime tradeTime;

    /**
     * 收款人姓名
     */
    @TableField("t_name")
    private String tName;
    /**
     * 付款人姓名
     */
    @TableField("i_name")
    private String iName;

    /**
     * 收款人标识
     */
    @TableField("t_id")
    private String tId;

    /**
     * 付款人标识
     */
    @TableField("i_id")
    private String iId;

}
